From: Andreas Schwab Date: Fri, 6 Feb 2004 21:41:22 +0000 (+0000) Subject: (view-mode-enable): Add view-mode-map to X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24245 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=2d343a463246a62eb89a70d72d9828f991b78a41;p=emacs.git (view-mode-enable): Add view-mode-map to minor-mode-overriding-map-alist. --- diff --git a/lisp/view.el b/lisp/view.el index 1ee6014c73a..6d7ad4aa468 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -463,6 +463,9 @@ Entry to view-mode runs the normal hook `view-mode-hook'." (if (buffer-file-name) (file-name-nondirectory (buffer-file-name)) (buffer-name)))) + ;; Override major mode's scrolling commands. + (add-to-list 'minor-mode-overriding-map-alist + (cons 'view-mode view-mode-map)) (force-mode-line-update) (run-hooks 'view-mode-hook))